package math;

public class Paire {

    private final int x1;
    private final int x2;

    private Paire(int i, int j) {
        this.x1 = i;
        this.x2 = j;
    }

    @Override
    public String toString() {
        super.toString();
        return "(" + x1 + "," + x2 + ")";
    }

    public static Paire paire(int i, int j) {
        return new Paire(i, j);
    }

    public int _1() {
        return x1;
    }

    public int _2() {
        return x2;
    }
}
